package com.fmy.security.config;

import com.fmy.security.cache.config.CacheSpec;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName CaffeineProperties
 * @Description TODO
 * @createTime 2019/9/6 13:21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ConfigurationProperties(prefix = "spring.cache.token")
public class TokenProperties {

    private Map<String, CacheSpec> specs;

    private long expireTime = 120;

    private boolean enable = false;

    private boolean appoint = false;

    private String cacheManagerName = "securityCacheManager";

    private String loginTypeDefult = "web";
}
